<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>用户列表</h1>
    <a th:href="@{/users/add}">新增</a>
    <table>
        <tr>
            <td>id</td>
            <td>realname</td>
            <td>account</td>
            <td>roleId</td>
            <td>birthday</td>
            <td>sex</td>
            <td>操作</td>
        </tr>
        <tr th:each="user:${userList}">
            <td th:text="${user.id}">001</td>
            <td th:text="${user.realname}">zhna</td>
            <td th:text="${user.account}">sa</td>
            <td th:text="${user.bmid}">1</td>
            <td th:text="${#dates.format(user.birthday,'yyyy-MM-dd')}">2004-03-20</td>
            <td th:text="${user.sex}">男</td>
            <td>
                <a th:href="@{/users/del/{id}(id=${user.id})}">删除</a>
                <a th:href="@{/users/update/{id}(id=${user.id})}">修改</a>
            </td>
        </tr>
    </table>
</body>
</html>